package com.tianyue.overlordgame.binding.textview;

import android.databinding.BindingAdapter;
import android.widget.TextView;

/**
 * $desc
 * 作者：10622 on 2019/2/23 09:42
 * 邮箱：1062258956@qq.com
 */
public class ViewAdapter {


    @SuppressWarnings("unchecked")
    @BindingAdapter({"setBackground"})
    public static void setBackground(final TextView textView, final int resId) {
        textView.setBackgroundResource(resId);
    }
}